CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

include_directories(${COMN_DIR}/include)
include_directories(include)
include_directories(.)

if (MSVC)
include_directories(${THIRD_PARTY}/stdint)
endif()

link_directories(${COMN_DIR}/lib)
link_directories(${PROJECT_ROOT}/lib)

include_directories(${THIRD_PARTY}/SDL2/include)
link_directories(${THIRD_PARTY}/SDL2/lib/x86)
link_directories(${THIRD_PARTY}/SDL2/lib)

aux_source_directory(. SOURCES)
aux_source_directory(sdl SOURCES)

add_library(RtpSound SHARED ${SOURCES})

target_link_libraries(RtpSound
	${LIB_PLATFORM}
	debug comnd optimized comn
	SDL2 SDL2main 
	)

set_target_properties(RtpSound PROPERTIES LINK_INTERFACE_LIBRARIES "")
set_target_properties(RtpSound PROPERTIES INTERFACE_LINK_LIBRARIES "")

